package com.zys.pojo;

import java.util.Set;
import java.util.HashSet;
import java.io.Serializable;

/**
 * 权限实体类
 */
public class Rights implements Serializable {
  private Integer id;         // 权限 id
  private String rightName;   // 权限名称
  private String keyword;     // 权限关键字，用于权限控制
  private String description; // 权限描述
  private Set<Role> roles = new HashSet<>(0);   // 拥有该权限的角色群体

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getRightName() {
    return rightName;
  }

  public void setRightName(String rightName) {
    this.rightName = rightName;
  }

  public String getKeyword() {
    return keyword;
  }

  public void setKeyword(String keyword) {
    this.keyword = keyword;
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public Set<Role> getRoles() {
    return roles;
  }

  public void setRoles(Set<Role> roles) {
    this.roles = roles;
  }
}
